/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * ZodiacAnalogueNodes
 */
@JsonPropertyOrder({
  ZodiacAnalogueNodes.JSON_PROPERTY_ENABLED,
  ZodiacAnalogueNodes.JSON_PROPERTY_MIN_SIMILARITY,
  ZodiacAnalogueNodes.JSON_PROPERTY_MIN_SHARED_PEAKS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class ZodiacAnalogueNodes {
  public static final String JSON_PROPERTY_ENABLED = "enabled";
  @jakarta.annotation.Nullable
  private Boolean enabled;

  public static final String JSON_PROPERTY_MIN_SIMILARITY = "minSimilarity";
  @jakarta.annotation.Nullable
  private Double minSimilarity;

  public static final String JSON_PROPERTY_MIN_SHARED_PEAKS = "minSharedPeaks";
  @jakarta.annotation.Nullable
  private Integer minSharedPeaks;

  public ZodiacAnalogueNodes() {
  }

  public ZodiacAnalogueNodes enabled(@jakarta.annotation.Nullable Boolean enabled) {
    
    this.enabled = enabled;
    return this;
  }

  /**
   * Get enabled
   * @return enabled
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isEnabled() {
    return enabled;
  }


  @JsonProperty(JSON_PROPERTY_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) {
    this.enabled = enabled;
  }

  public ZodiacAnalogueNodes minSimilarity(@jakarta.annotation.Nullable Double minSimilarity) {
    
    this.minSimilarity = minSimilarity;
    return this;
  }

  /**
   * Get minSimilarity
   * @return minSimilarity
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_MIN_SIMILARITY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Double getMinSimilarity() {
    return minSimilarity;
  }


  @JsonProperty(JSON_PROPERTY_MIN_SIMILARITY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMinSimilarity(@jakarta.annotation.Nullable Double minSimilarity) {
    this.minSimilarity = minSimilarity;
  }

  public ZodiacAnalogueNodes minSharedPeaks(@jakarta.annotation.Nullable Integer minSharedPeaks) {
    
    this.minSharedPeaks = minSharedPeaks;
    return this;
  }

  /**
   * Get minSharedPeaks
   * @return minSharedPeaks
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_MIN_SHARED_PEAKS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getMinSharedPeaks() {
    return minSharedPeaks;
  }


  @JsonProperty(JSON_PROPERTY_MIN_SHARED_PEAKS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMinSharedPeaks(@jakarta.annotation.Nullable Integer minSharedPeaks) {
    this.minSharedPeaks = minSharedPeaks;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ZodiacAnalogueNodes zodiacAnalogueNodes = (ZodiacAnalogueNodes) o;
    return Objects.equals(this.enabled, zodiacAnalogueNodes.enabled) &&
        Objects.equals(this.minSimilarity, zodiacAnalogueNodes.minSimilarity) &&
        Objects.equals(this.minSharedPeaks, zodiacAnalogueNodes.minSharedPeaks);
  }

  @Override
  public int hashCode() {
    return Objects.hash(enabled, minSimilarity, minSharedPeaks);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ZodiacAnalogueNodes {\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    minSimilarity: ").append(toIndentedString(minSimilarity)).append("\n");
    sb.append("    minSharedPeaks: ").append(toIndentedString(minSharedPeaks)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

